package com.hy.mvc.biz.excel.exportstrategy;

import com.hy.mvc.biz.excel.model.SimpleExcelModel;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.springframework.stereotype.Component;

/**
 * Created by Booker on 2017/7/3.
 */
@Component("simpleCommonPropertyStrategy")
public class SimpleCommonPropertyStrategy implements CommonPropertyStrategy {
    @Override
    public HSSFSheet buildCommonProperty(HSSFSheet workSheet, SimpleExcelModel excelModel) {
        workSheet.setDefaultColumnWidth(16);
        workSheet.setAutobreaks(true);
        return workSheet;
    }
}
